<template>
  <div>
    <h2>我是App组件</h2>
    <div class="App">
      <Brother v-for="item in itemData" v-bind="item" :key="item.id">
        <template v-slot:default="{content}">
          <ul>
            <li v-for="item in content" :key="item">{{item}}</li>
          </ul>
        </template>
      </Brother>
    </div>
  </div>
</template>

<script>
import Brother from "@/components/Item";
export default {
  name: "App",
  components: {Brother},
  data(){
    return{
      itemData: [
        { id: "001", content: ["火锅", "烧烤", "螺蛳粉"], title: "美食" },
        {
          id: "002",
          content: ["等你下课", "放学别走", "操场上见"],
          title: "音乐",
        },
        { id: "003", content: ["CF", "DNF", "CS"], title: "游戏" },
      ],
    }
  }
}
</script>

<style scoped>
.App{
  display: flex;
  justify-content: space-around;
}
</style>